﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ClientManager.Web.Models
{
    public class ClientViewModel
    {
        public int? ClientId { get; set; }

        [Required(ErrorMessage = "The first name is required")]
        [DisplayName("First name")]
        public string FirstName { get; set; }

        [Required(ErrorMessage = "The surname is required")]
        [DisplayName("Surname")]
        public string Surname { get; set; }
        
        [DisplayName("Date created")]
        public DateTime DateCreated { get; set; }
        
        [Required(ErrorMessage = "The service level is required")]
        [DisplayName("Service level")]
        public int? ServiceLevelId { get; set; }
        [DisplayName("Service level")]
        public string ServiceLevelName { get; set; }
        
        public SelectList ServiceLevels { get; set; }
    }
}